package org.lsy.component;

import org.apache.dubbo.config.annotation.Reference;
import org.lsy.service.DemoService;
import org.springframework.stereotype.Component;

/**
 * @author liusy95
 * @version 1.0
 * @date 2020/7/1
 */
@Component
public class TaskB implements Runnable{

    @Reference
    private DemoService demoService;

    @Override
    public void run() {
        demoService.methodB();
    }
}
